package com.gzy.rpsm_property.service;

import com.gzy.rpsm_property.mapper.BuildingMapper;
import com.gzy.rpsm_property.pojo.Building;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class BuildingServiceImpl implements BuildingService {
    @Autowired
    BuildingMapper buildingMapper;



    @Override
    public List<Building> buildingsOfUsed() {
        short s =1;
        return buildingMapper.buildingsOfStatus(1);
    }
}
